﻿<%@ Page Title="Chi tiết hỏi đáp" Language="C#" AutoEventWireup="true" CodeBehind="FaqEdit.aspx.cs" Inherits="VIT.Web.Admin.FaqEdit" %>
<%@ Register Assembly="VIT.Web.Controls" Namespace="VIT.Web.Controls" TagPrefix="VIT" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../../Includes/Validation/Validation.css" rel="stylesheet" type="text/css" />
    <script src="../../Includes/Validation/ValidationEngine.js" type="text/javascript"></script>
    <script src="../../Includes/Validation/Validation.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">    	       
   <form id="aspnetForm" runat="server"> 
        <!-- Content (Right Column) -->
        <div id="content" class="box">
            <asp:Panel ID="pnAlert" runat="server">
                <p class="msg info" id="lblThanhCong" runat="server" visible="false">Dữ liệu đã lưu thành công.</p>
                <p class="msg done" id="lblThatBai" runat="server" visible="false">Không thể lưu dữ liệu.</p>
	        </asp:Panel>
            <div id="ButtonInsert" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save" runat="server" Function="Faq_Insert" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply" runat="server" Function="Faq_Insert" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div>  
            <div id="ButtonModify" class="toolbar" runat="server" visible="false">
                <VIT:Submit ID="Save2" runat="server" Function="Faq_Modify" ToolTip="Lưu và quay lại danh sách" CssClass="icon-32-save" BorderStyle="None" onclick="Save_Click" OnClientClick="$('#aspnetForm').validationEngine();"/>
                <VIT:Submit ID="Apply2" runat="server" Function="Faq_Modify" ToolTip="Lưu lại" CssClass="icon-32-apply" BorderStyle="None" onclick="Apply_Click" OnClientClick="$('#aspnetForm').validationEngine();" />
                <asp:Button runat="server" ToolTip="Hủy bỏ" CssClass="icon-32-cancel" BorderStyle="None" onclick="Cancel_Click"/>
            </div>  
            <div class="clr"></div>          
            <fieldset>
                <table class="nostyle" style="float:left">
                    <tr>
                        <td align="right">Ngôn ngữ :</td>
                        <td><asp:DropDownList ID="ddlLang" runat="server"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right">Group :</td>
                        <td>
                            <select id="parentid" name="parentid">
                                <%=this.genOption%>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">Câu hỏi :</td>
                        <td><asp:TextBox ID="txtQuestion" runat="server" TextMode="MultiLine" CssClass="validate[required,length[1,1000]]" Width="400px" MaxLength="1000"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Người hỏi : </td>
                        <td><asp:TextBox ID="txtAskBy" runat="server" Width="400px" MaxLength="100"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Trả lời :</td>
                        <td>
                            <%--<asp:TextBox ID="txtAnswer" runat="server" TextMode="MultiLine" Width="500px" Height="150"></asp:TextBox>--%>
                            <FCKeditorV2:FCKeditor ID="Contents" runat="server" BasePath="../../Includes/fckeditor/" 
                                Height="400px" Width="820px"></FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">Người trả lời :</td>
                        <td><asp:TextBox ID="txtAnswerBy" runat="server" Width="400px" MaxLength="100"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Email :</td>
                        <td><asp:TextBox ID="txtEmail" runat="server" CssClass="" Width="400px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Địa chỉ :</td>
                        <td><asp:TextBox ID="txtAddress" runat="server" CssClass="" Width="400px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Thứ tự :</td>
                        <td><asp:TextBox ID="txtOrder" runat="server" Width="50px" CssClass="validate[onlyNumber]" Text="30" MaxLength="3"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right">Hiển thị :</td>
                        <td><asp:CheckBox ID="chkPublish" runat="server" Checked="true"/></td>
                    </tr>
                </table>
            </fieldset>

            <script type="text/javascript">
                $("#aside ul li#FaqList").addClass("submenu-active");
            </script>
        </div>
    </form>
</asp:Content>
